import unittest
from appium import webdriver
from Public.Desired_Config import desired
import time
from Page.mainPage import mainPage
from Page.myPage import myPage
from Page.public import public
class Test_Login(unittest.TestCase):
    def setUp(self):
        self.driver =webdriver.Remote("http://localhost:4723/wd/hub",desired())
        self.mainPage = mainPage(self.driver)
        self.myPage = myPage(self.driver)
        self.public =public(self.driver)
    def tearDown(self):
        self.driver.quit()
    def test01(self):
        print(self.mainPage.mainTab().text)
    def test02(self):
        self.myPage.login().click()
if __name__ =='__main__':
    suite = unittest.TestLoader.loadTestsFromTestCase(Test_Login)
    unittest.TextTestRunner().run(suite)
